package com.esisa.models;

import java.util.Date;
import java.util.Set;

public class Fermier extends Personne {

	private double salaire;
	private Set<Anomalie> anomalies;
	private Date dateRecrutement;
	private TypeBetail typeBetail;
	
	public Fermier() {
		
	}

	public double getSalaire() {
		return salaire;
	}

	public void setSalaire(double salaire) {
		this.salaire = salaire;
	}

	public Set<Anomalie> getAnomalies() {
		return anomalies;
	}

	public void setAnomalies(Set<Anomalie> anomalies) {
		this.anomalies = anomalies;
	}

	public Date getDateRecrutement() {
		return dateRecrutement;
	}

	public void setDateRecrutement(Date dateRecrutement) {
		this.dateRecrutement = dateRecrutement;
	}

	public TypeBetail getTypeBetail() {
		return typeBetail;
	}

	public void setTypeBetail(TypeBetail typebetail) {
		this.typeBetail = typebetail;
	}

	@Override
	public String toString() {
		return "Fermier [salaire=" + salaire + ", anomalies=" + anomalies
				+ ", dateRecrutement=" + dateRecrutement + ", typebetail="
				+ typeBetail + "]"+super.toString();
	}	
}